import React from 'react';
import App from './route';
import { createRoot } from 'react-dom/client';
import { HashRouter as Router } from 'react-router-dom';
import { ConfigProvider } from 'antd';
import zhCN from 'antd/lib/locale/zh_CN';
import moment from 'moment';

const root = createRoot(document.getElementById('music-player'));
const ConfigProviderProps = {
  prefixCls: 'Ax',
  locale: zhCN,
};
moment.locale('zh-cn');
root.render(
  <ConfigProvider {...ConfigProviderProps}>
    <Router>
      <App />
    </Router>
  </ConfigProvider>
);
